package com.itany.cloud.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itany.cloud.entity.Flight;
import com.itany.cloud.exception.RequstParameterErrorException;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public interface FlightService {

    void addFlight(String no,String company,String model,String totalSeats,String leaveCity,String arrivalCity,String economyPrice ,String firstPrice,String leaveTime ,String arrivalTime) throws RequstParameterErrorException;

    Page<Flight> findByParams(String pageNo, String pageSize, String leaveCity, String arrivalCity, String no, String company, String leaveTime , String arrivalTime);
}
